from django.db import models
from user.models import User
from chat.models import Room


# Create your models here.
class Record(models.Model):
    content = models.TextField('内容', max_length=100)
    created_time = models.DateTimeField('创建时间', auto_now_add=True)
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    room = models.ForeignKey(Room, on_delete=models.CASCADE)
